<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>管理评论</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>

		<center>
			<h1>
				评论管理
			</h1>


			<table align="center" border="1">
				<tr>
					<th>
						评论时间
					</th>
					<th>
						评论视频
					</th>
					<th>
						评论人
					</th>
					<th>
						评论内容
					</th>
					<th>
						回复评论
					</th>
					<th>
						删除
					</th>
				</tr>

				<c:forEach var="list" items="${requestScope.data}" varStatus="index">
					<tr
						<c:if test="${index.index % 3 == 0 }"> style="background-color:rgb(240,240,240);"</c:if>
						<c:if test="${index.index % 2 == 0 }"> style="background-color:rgb(219,241,212);"</c:if>>
						<td>
							${list.t_comment_addtime}
						</td>
						<td>
							${list.t_video_name}

						</td>
						<td>
							${list.t_user_nick}

						</td>
						<td>
							${list.t_comment_content}
						</td>
						<td>
							<form action="servlet_recomment" method="post">
								<input type="hidden" name="uid" value="${list.t_user_id}">
								<input type="hidden" name="cid" value="${list.t_comment_id}">
								<input type="text" name="content"">
								<input type="submit" value="提交">
								<input type="reset" value="重置">
							</form>
						</td>
						<td>
							<a href="servlet_delcomment?id=${list.t_comment_id}">删除</a>
						</td>

					</tr>
				</c:forEach>

			</table>
		</center>
	</body>
</html>
